﻿# (必填)该参数为华为云账号的访问密钥ID（AK），可在华为云控制台获取。默认为空。
variable "access_key" {
  description = "ak"
  default     = ""
  type        = string
}

# (必填)该参数为华为云账号的秘密访问密钥（SK），可在华为云控制台获取。默认为空。
variable "secret_key" {
  description = "sk"
  default     = ""
  type        = string
}

# (必填)该参数为运维人员从境内跳出的跳板机所在地区，可通过广州-香港线路跨境，通过广州跳转，则此参数填写“cn-south-1”，即广州region的区域代码（区分大小写）。默认为“cn-south-1”
variable "region_operation"{
  description = "the region of the ECS close to the operator"
  default     = "cn-south-1"
  type        = string
}

# (必填)该参数为境外跳板机所在地区，可通过广州-香港线路跨境，从香港跳出至境外公网,则此参数填写“ap-southeast-1”（区分大小写）即香港region的区域代码。默认为“ap-southeast-1”
variable "region_resource"{
  description = "the region of the ECS close to the resource"
  default     = "ap-southeast-1"
  type        = string
}

# (必填)该参数为两台跳板机服务器的操作系统，支持"Windows"或“CentOS”（区分大小写）。默认为CentOS
variable "OS_type" {
  description = "the OS of ECS "
  default     = "CentOS"
  type        = string
}

# (必填)该参数为境内-运维人员侧跳板机的密码。默认为空。
variable "ecs_operation_admin_pass" {
  description = "the adminpass of the ECS close to the operator"
  default     = ""
  type        = string
}

# (必填)该参数为境外-资源侧跳板机的密码。默认为空。
variable "ecs_resource_admin_pass" {
  description = "the adminpass of the ECS close to the resource"
  default     = ""
  type        = string
}

# (必填)该参数为云服务器所挂公网IP的付费模式。traffic为按流量计费，bandwidth为按带宽计费。(区分大小写)。默认为traffic
variable "eip_charging_mode" {
  description = "the charging mode of EIP "
  default     = "traffic"
  type        = string
}

# (必填)该参数为ECS的付费模式。postPaid为按需；prePaid为按周期。默认为postPaid
variable "ecs_charging_mode" {
  description = "the charging mode of ECS "
  default     = "postPaid"
  type        = string
}

# (选填，当付费模式为prePaid时必填)该参数为云服务器的付费周期。（仅当付费模式为prePaid时生效），可填写“month”或“year”。默认为month
variable "ecs_charging_unit"{
  description = "the charging unit of ECS "
  default     = "month"
  type        = string
}

# (选填，当付费模式为prePaid时必填)该参数为云服务器购买多少个周期。（仅当付费模式为prePaid时生效）。默认为1
variable "ecs_charging_period"{
  description = "the charging period of ECS"
  default     = 1
}

